package cn.hdu.liang.initialization;

class Test {
    Test(String s) {
        System.out.println("String constructor; s = " + s);
    }
}

public class Exam17 {
    Test[] array1 = new Test[3];

    public static void main(String[] args) {
        Test[] array2 = new Test[5];
    }
}

class Exam18 {
    public static void main(String[] args) {
        Test[] array = new Test[5];
        for(int i = 0; i < array.length; i++) {
            array[i] = new Test(Integer.toString(i));
        }
    }
}